<div class="partners form">
<?php echo $this->ExtendedForm->create('Partner', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Edit Partner'); ?></h3>
    <div class="form-group row">
        <div class="col-sm-2">
            <label for="language">Language</label>
            <select name="language" id="language" class="form-control">
                <option value="vietnam">VietNam</option>
                <option value="english">English</option>
                <option value="japan">Japan</option>
            </select>
        </div>
    </div>
    <?php
        if(isset($this->request->params['named']['partner_id'])) echo '<div style="display: none;">';
        echo $this->ExtendedForm->input('partner_id', array_merge(array('label' => __d('admin', 'Partner'))));
        if(isset($this->request->params['named']['partner_id'])) echo '</div>';
    ?>
    <div class="area-language" id="text-vietnam">
	<?php
		if(isset($this->request->params['named']['name'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name', array_merge(array('label' => __d('admin', 'Name'))));
		if(isset($this->request->params['named']['name'])) echo '</div>';
    ?>
    </div>
    <div class="area-language" id="text-english" style="display:none">
    <?php
		if(isset($this->request->params['named']['name_eng'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name_eng', array_merge(array('label' => __d('admin', 'Name Eng'))));
		if(isset($this->request->params['named']['name_eng'])) echo '</div>';
    ?>
    </div>
    <div class="area-language" id="text-japan" style="display:none">
    <?php
		if(isset($this->request->params['named']['name_jpn'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name_jpn', array_merge(array('label' => __d('admin', 'Name Jpn'))));
		if(isset($this->request->params['named']['name_jpn'])) echo '</div>';
    ?>
    </div>
	<?php
		if(isset($this->request->params['named']['link'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('link', array_merge(array('label' => __d('admin', 'Link'))));
		if(isset($this->request->params['named']['link'])) echo '</div>';
		
		if(isset($this->request->params['named']['image'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Image'))));
		if(isset($this->request->params['named']['image'])) echo '</div>';

	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Partner'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="form-group">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div>'));?>
</div>